package cn.javass.test;

import javax.swing.tree.DefaultMutableTreeNode;

public class TreeField {
	private DefaultMutableTreeNode node;
	private int childnum;


	TreeField(DefaultMutableTreeNode node, int childnum) {
		super();
		this.node = node;
		this.childnum = childnum;
	}

	public DefaultMutableTreeNode getnode() {
		return node;
	}

	public int getChildnum() {
		return childnum;
	}

	@Override
	public String toString() {
		return node.toString();
	}

}
